﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using BUS;
using DTO;
using HOTEL_MANAGEMENT;


namespace TestQLKS
{
    [TestFixture]
    public class CNGUOIDUNG
    {
        //Lấy thông tin người dùng
        [Test]
        public void LayThongTinNguoiDung()
        {
            CNGUOIDUNGDTO nguoidungDto = new CNGUOIDUNGDTO();
            nguoidungDto = CNGUOIDUNGBUS.LayThongTinNguoiDung(9);
            CNGUOIDUNGDTO nd = new CNGUOIDUNGDTO();
            nd = null;
            Assert.AreNotEqual(nd, nguoidungDto);
        }
        [Test]
        public void CapNhatMatKhau()
        {
            CNGUOIDUNGDTO nguoidungDto = new CNGUOIDUNGDTO();
            nguoidungDto.MaNguoiDung = 9;
            nguoidungDto.MatKhau = CNGUOIDUNGBUS.MaHoaMD5("1581978");
            CNGUOIDUNGDTO nd = new CNGUOIDUNGDTO();
            bool kq = CNGUOIDUNGBUS.CapNhatMatKhau("123", "1581978", nguoidungDto);
            Assert.AreEqual(kq, true);

        }
        //[Test]
        //public void KiemTraThongTinHoaDon()
        //{
        //    CPHIEUTHUEDTO phieuthueDto = new CPHIEUTHUEDTO();
        //    int maphong = 0;
        //    string tenphong = "A2";
        //    int songaythue = 0;
        //    long dongia = 0;
        //    long thanhtien = 0;
        //    CHOADONBUS.ThongTinHoaDon(ref phieuthueDto, ref maphong , tenphong,ref songaythue,ref dongia,ref thanhtien);
        //    int m = ;
        //    Assert.AreEqual(maphong, m);
        //}
    }
}
